package com.zlq.cn.controller.sign.juhe;


import com.alibaba.fastjson.JSONObject;
import com.zlq.cn.api.SignApiResult;
import com.zlq.cn.entity.JuheZwType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import com.zlq.cn.service.juhe.JuheZwTypeService;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 集合作文分类 前端控制器
 * </p>
 *
 * @author zhoucl
 * @since 2023-12-13
 */
@Api(tags = "集合作文分类")
@RestController
@RequestMapping("/juhe/zw/type")
public class JuheZwTypeController {

    @Resource
    private JuheZwTypeService juheZwTypeService;


    @ApiOperation("集合作文分类列表")
    @PostMapping("/list")
    public SignApiResult<List<JuheZwType>> list(@ApiIgnore @RequestBody JSONObject param) {
        return SignApiResult.resultSuccess(juheZwTypeService.list());
    }

}

